<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >

<html>
<head>
<base href="<%=basePath%>">

<title>用户登录(User Login)</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="css/skin1.css" rel="stylesheet" type="text/css">

<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #1D3647;
}
</style>
<script language="javascript">
	function mycheck() {
		if (myform.user.value == "") {
			alert("用户名称不能为空！！");
			myform.user.focus();
			return false;
		}
		if (myform.pass.value == "") {
			alert("密码不能为空！！");
			myform.pass.focus();
			return false;
		}
	}
</script>

</head>

<body>
	<table width="100%" height="500" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="42" valign="top"><table width="100%" height="42"
					border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
					<tr>
						<td width="1%" height="21">&nbsp;</td>
						<td height="42">&nbsp;</td>
						<td width="17%">&nbsp;</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td valign="top"><table width="100%" height="532" border="0"
					cellpadding="0" cellspacing="0" class="login_bg">
					<tr>
						<td width="48%" align="center" valign="top"><br> <br>
						<br>
						<br>
						<br>
						<br>
						<br> <img src="img/logo.png" width="350px"
							height="100px"></td>
						<td width="1%">&nbsp;</td>
						<td width="50%" valign="bottom"><table width="100%"
								height="59" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="4%">&nbsp;</td>
									<td width="96%" height="38"><span class="login_txt_bt">登&nbsp;&nbsp;录</span>
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td height="21"><table cellSpacing="0" cellPadding="0"
											width="100%" border="0" id="table211" height="328">
											<tr>
												<td height="164" colspan="2" align="center"><form
														name="myform" action="login" method="post">
														<table cellSpacing="0" cellPadding="0" width="100%"
															border="0" height="143" id="table212">
															<tr>
																<td width="9%" height="38" class="top_hui_text"><span
																	class="login_txt">用户名:&nbsp;&nbsp; </span></td>
																<td height="38" colspan="2" class="top_hui_text"><input
																	type="text" name="user.username" id="user" class="editbox4"
																	size="20"></td>
															</tr>
															<tr>
																<td width="11%" height="35" class="top_hui_text"><span
																	class="login_txt">密&nbsp;&nbsp;码: &nbsp;&nbsp; </span></td>
																<td height="35" colspan="2" class="top_hui_text"><input
																	class="editbox4" type="password" size="20"
																	name="user.password" id="pass"> <img
																	src="img/luck.gif" width="19" height="18">
																</td>
															</tr>
															<tr>
																<td height="35">&nbsp;</td>
																<td width="20%" height="35"></td>
																<td width="67%" class="top_hui_text"><input name="Submit"
																	type="submit" class="button" id="Submit" value="登 陆"
																	onClick="return mycheck();" /></td>
															</tr>
															
															<tr>
																<td height="35" colspan="2" class="top_hui_text"
																	align="center" colspan="2"><span
																	class="errorAndmes"><s:actionerror
																			cssStyle="font-family: Arial,Helvetica,sans-serif" />
																</span>
																</td>
															</tr>
														</table>
														<br>
													</form></td>
											</tr>
											<tr>
												<td width="433" height="164" align="right" valign="bottom"><img
													src="img/login-wel.gif" width="242" height="138"></td>
												<td width="57" align="right" valign="bottom">&nbsp;</td>
											</tr>
										</table></td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0" class="login-buttom-bg">
					<tr>
						<td align="center"></td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>

